import request from '@/utils/request';

export function listPlatformUser(query) {
  return request({
    url: '/system/platformUser/list',
    method: 'get',
    params: query
  });
}

export function getPlatformUserUpdateInfo(id) {
  return request({
    url: '/system/platformUser/updateInfo/' + id,
    method: 'get'
  });
}

export function getPlatformUser(id) {
  return request({
    url: '/system/platformUser/' + id,
    method: 'get'
  });
}

export function getPlatformUserRecentOrders(id) {
  return request({
    url: '/system/platformUser/getRecentOrders/' + id,
    method: 'get'
  });
}

export function updatePlatformUser(data) {
  return request({
    url: '/system/platformUser',
    method: 'put',
    data: data
  });
}

export function deletePlatformUser(id) {
  return request({
    url: '/system/platformUser/' + id,
    method: 'delete'
  });
}


